            <!--市场活动-->
            <div class="mar-t-10">
                <div class="botLine">市场活动
                </div>

                <ul class="activityItem">

                <?php 
                        $cat_id =4; //指定分类ID
                        $args = array('cat' => $cat_id,'orderby' => 'ID','order' => 'DESC','showposts' => '10','offset' => '0');
                        query_posts( $args );
                        $b=0;		
                        if (have_posts()) :while (have_posts()) : the_post(); $b++;    
                        ?>

                        <li><a href="<?php if ( get_post_meta($post->ID, '外链', true) ) {?><?php echo get_post_meta($post->ID, '外链',true);?><?php }?>" target="_blank">
                                <div class="imgActivityWra mar-b-15 j-srh">
                                    <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'auto_img' ); } ?>
                                </div>
                                <h2 class="articleT"><?php echo mb_strimwidth(get_the_title(), 0, 1000, '...'); ?></h2>
                            </a>
                        </li>

                <?php endwhile; wp_reset_query();   else: ?><?php endif; ?>
 

                  
                </ul>
            </div>